$OpenBSD: patch-sandbox_linux_BUILD_gn,v 1.5 2017/03/14 12:18:54 robert Exp $
--- sandbox/linux/BUILD.gn.orig.port	Thu Mar  9 21:04:36 2017
+++ sandbox/linux/BUILD.gn	Fri Mar 10 07:46:24 2017
@@ -12,12 +12,12 @@ if (is_android) {
 }
 
 declare_args() {
-  compile_suid_client = is_linux
+  compile_suid_client = is_linux && !is_openbsd
 
-  compile_credentials = is_linux
+  compile_credentials = is_linux && !is_openbsd
 
   # On Android, use plain GTest.
-  use_base_test_suite = is_linux
+  use_base_test_suite = is_linux && !is_openbsd
 }
 
 if (is_nacl_nonsfi) {
@@ -357,7 +357,7 @@ component("sandbox_services") {
     public_deps += [ ":sandbox_services_headers" ]
   }
 
-  if (is_nacl_nonsfi) {
+  if (is_nacl_nonsfi || is_openbsd) {
     cflags = [ "-fgnu-inline-asm" ]
 
     sources -= [
@@ -365,6 +365,8 @@ component("sandbox_services") {
       "services/init_process_reaper.h",
       "services/scoped_process.cc",
       "services/scoped_process.h",
+      "services/syscall_wrappers.cc",
+      "services/syscall_wrappers.h",
       "services/yama.cc",
       "services/yama.h",
       "syscall_broker/broker_channel.cc",
